import EventDispatcher from "./EventDispatcher";

export default class GEvent extends EventDispatcher {
    private static ins: GEvent;

    static instance() {
        if (!this.ins) {
            this.ins = new GEvent()
        }
        return this.ins;
    }

    static EVENT_HIDE: string = 'EVENT_HIDE'

    static EVENT_SHOW: string = 'EVENT_SHOW'

    static CHANGE_AD_STATE: string = 'EVENT_CHANGE_AD_STATE'

    static POP_VIEW: string = 'POP_VIEW'




    pause() {

        this.emit(GEvent.EVENT_HIDE)
    }

    resume() {

        this.emit(GEvent.EVENT_SHOW)
    }

}